from loguru import logger

ML = logger


def make_logfile(file_name, rotation="1 week", retention="10 days"):
    """
    简单的初始化log的文件
    使用帮助: https://pythondict.com/life-intelligent/tools/loguru/
    """
    return ML.add("%s_.log" % file_name, rotation=rotation, retention=retention)
